//统一管理项目角色相关的接口
import request from "@/utils/request";
import type { addRoleResponseData, 
    getRoleListResponseData, 
    roleInfoData} from "./type";
//获取角色列表
export const getRoleList=()=>request.get<any,getRoleListResponseData>("/manage/role/list")
//添加角色列表
export const addRole=(data:roleInfoData)=>
    request.post<any,addRoleResponseData>("/manage/role/add",data)
//设置角色权限
export const updateRole = (data:roleInfoData)=>
    request.post<any,addRoleResponseData>("/manage/role/update",data)


